package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券对象 coupon
 * 
 * @author xin
 * @date 2024-04-19
 */
public class Coupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal amount;

    /** 优惠券可使用地区 */
    @Excel(name = "优惠券可使用地区")
    private String tag;

    /** 优惠券类型 */
    @Excel(name = "优惠券类型")
    private String type;

    /** 使用期限(天) */
    @Excel(name = "使用期限(天)")
    private Integer lifespan;

    /** 是否过期 */
    @Excel(name = "是否过期")
    private Integer isExpired;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setTag(String tag) 
    {
        this.tag = tag;
    }

    public String getTag() 
    {
        return tag;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setLifespan(Integer lifespan) 
    {
        this.lifespan = lifespan;
    }

    public Integer getLifespan() 
    {
        return lifespan;
    }
    public void setIsExpired(Integer isExpired) 
    {
        this.isExpired = isExpired;
    }

    public Integer getIsExpired() 
    {
        return isExpired;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("amount", getAmount())
            .append("tag", getTag())
            .append("type", getType())
            .append("lifespan", getLifespan())
            .append("isExpired", getIsExpired())
            .toString();
    }
}
